//
//  ZYForgotViewController.m
//  重友科技
//
//  Created by Eileen Vivian on 2017/8/8.
//  Copyright © 2017年 dream. All rights reserved.
//

#import "ZYForgotViewController.h"
#import "UIButton+countDown.h"
@interface ZYForgotViewController ()
@property (weak, nonatomic) IBOutlet UIView *phoneView;
@property (weak, nonatomic) IBOutlet UIView *leftView;
@property (weak, nonatomic) IBOutlet UIButton *rightBtn;
@property (weak, nonatomic) IBOutlet UIView *setView;
@property (weak, nonatomic) IBOutlet UIButton *commitBtn;

@end

@implementation ZYForgotViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.phoneView.layer setCornerRadius:20];
    self.phoneView.layer.masksToBounds = YES;
    [self.leftView.layer setCornerRadius:20];
    self.leftView.layer.masksToBounds = YES;
    [self.rightBtn.layer setCornerRadius:20];
    self.rightBtn.layer.masksToBounds = YES;
    [self.setView.layer setCornerRadius:20];
    self.setView.layer.masksToBounds = YES;
    [self.commitBtn.layer setCornerRadius:20];
    self.commitBtn.layer.masksToBounds = YES;
}

- (IBAction)getBtn:(UIButton *)sender {
        [_rightBtn startWithTime:60 title:@"获取验证码" countDownTitle:@"s后重新获取" mainColor:[UIColor colorWithRed:210/255.0 green:233/255.0 blue:251/255.0 alpha:1.0f] countColor:[UIColor colorWithRed:210/255.0 green:233/255.0 blue:251/255.0 alpha:1.0f]];
}
- (IBAction)commitBtn:(UIButton *)sender {
    
}

- (IBAction)closeBtn:(UIButton *)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.view endEditing:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
